import request from '@/utils/request'

// 查询实体映射列表
export function listAitmapping(query) {
  return request({
    url: '/aitcommon/aitmapping/list',
    method: 'get',
    params: query
  })
}

// 查询实体映射详细
export function getAitmapping(id) {
  return request({
    url: '/aitcommon/aitmapping/' + id,
    method: 'get'
  })
}

// 新增实体映射
export function addAitmapping(data) {
  return request({
    url: '/aitcommon/aitmapping',
    method: 'post',
    data: data
  })
}

// 修改实体映射
export function updateAitmapping(data) {
  return request({
    url: '/aitcommon/aitmapping',
    method: 'put',
    data: data
  })
}

// 删除实体映射
export function delAitmapping(id) {
  return request({
    url: '/aitcommon/aitmapping/' + id,
    method: 'delete'
  })
}

// 导出实体映射
export function exportAitmapping(query) {
  return request({
    url: '/aitcommon/aitmapping/export',
    method: 'get',
    params: query
  })
}

// 下载导入模板
export function importTemplate() {
  return request({
    url: '/aitcommon/aitmapping/importTemplate',
    method: 'get'
  })
}